@extends('layouts.app')
@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-12 col-lg-12">
                <div class="panel panel-default">
                    <div class="panel-heading">编辑司机</div>
                    <div class="panel-body ">
                        <form action="{{route('admin.line.edit')}}" onsubmit="ck_submit()" class="form-horizontal" method="POST"   >
                            <input type="hidden" name="id" value="{{$vo->id}}">
                            {{csrf_field()}}
                            
                            <div class="form-group{{ $errors->has('start') ? ' has-error' : '' }}">
                                <label for="email" class="col-md-4 control-label">起点</label>
                                <div class="col-md-6">
                                    <input type="text" name="start" class="form-control" value="{{$vo->start}}">
                                    @if ($errors->has('start'))
                                        <span class="help-block">
                                        <strong>{{ $errors->first('start') }}</strong>
                                    </span>
                                    @endif
                                </div>
                            </div>

                            <div class="form-group{{ $errors->has('end') ? ' has-error' : '' }}">
                                <label for="email" class="col-md-4 control-label">终点</label>
                                <div class="col-md-6">
                                    <input type="text" name="end" class="form-control"  value="{{$vo->end}}">
                                    @if ($errors->has('end'))
                                        <span class="help-block">
                                        <strong>{{ $errors->first('end') }}</strong>
                                    </span>
                                    @endif
                                </div>
                            </div>

                            
                            <div class="form-group{{ $errors->has('price') ? ' has-error' : '' }}">
                                <label for="email" class="col-md-4 control-label">票价</label>
                                <div class="col-md-6">
                                    <input type="number" name="price" class="form-control"  value="{{$vo->price}}">
                                    @if ($errors->has('price'))
                                        <span class="help-block">
                                        <strong>{{ $errors->first('price') }}</strong>
                                    </span>
                                    @endif
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <div class="col-md-8 col-md-offset-4">
                                    <button type="submit" class="btn btn-primary">
                                        提交
                                    </button>
                                    <button type="button" class="btn btn-default" onclick="history.back()">
                                        返回
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

